<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>运输详情</title>
    <link rel="stylesheet" href="../../static/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/main.css">
    <link rel="stylesheet" href="../../static/css/public.css">
    <script src="../../static/js/jquery-3.4.1.min.js"></script>
    <script src="../../static/layui/layui.js"></script>
</head>
<body>

<table class="layui-hide" id="demo"></table>

<script>
    var order = JSON.parse(localStorage.getItem('searchorder'));
    layui.use('element', function(){
        var element = layui.element;

        //…
    });

    layui.use(['form', 'layedit', 'laydate','table'], function() {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate
            , table = layui.table
        table.render({
            elem: '#demo'
            , cellMinWidth: 120
            , title: '运输信息表'
            , cols: [[ //表头
                , {field: 'vehicleId', title: '货车编号' , sort: true, align: 'left'}
                , {field: 'arrivalTime', title: '到达仓库时间' , sort: true, align: 'left'}
                , {field: 'departureTime', title: '离开仓库时间' , sort: true, align: 'left'}
                , {field: 'warehouseId', title: '仓库编号' , sort: true, align: 'left'}
                , {field: 'toWarehouseId', title: '前往下一个仓库编号' , sort: true, align: 'left'}
                , {field: 'payStatus', title: '支付状态', align: 'left'}
            ]]
            , data: order.data
        });

    });
</script>


</body>
</html>